{% extends 'database/base.html' %}

{% block title_content %}详细信息{% endblock %}

{% block body_content %}
<h1 class="display-1">详细信息</h1>
<div class="card">
  <h5 class="card-header">
    {{ object.name }}的信息
  </h5>
   <ul class="list-group list-group-flush">
    <li class="list-group-item">ID：{{ object.id }}</li>
    <li class="list-group-item">订餐时间：{{ object.orderTime }}</li>
    <li class="list-group-item">商铺：{{ object.store_name }}</li>
     <li class="list-group-item">菜品：{{ object.food_name }}</li>
       <li class="list-group-item">单价：{{ object.price }}</li>
       <li class="list-group-item">数量：{{ object.amount }}</li>
       <li class="list-group-item">总价：{{ object.totalPrice }}</li>
       <li class="list-group-item">客户账号：{{ object.account }}</li>
       <li class="list-group-item">送餐地址：{{ object.deliveryAddress }}</li>
       <li class="list-group-item">客户电话：{{ object.telNum }}</li>
       <li class="list-group-item">订单状态：{{ object.state|yesno:"已完成,未完成" }}</li>
  </ul>
  <div class="card-body">
      <a href="{% url 'delivery_database:normal_user_order_list' id %}" class="btn btn-primary">返回</a>
  </div>
</div>
{% endblock %}